const isDev = process.env.NODE_ENV === "development";

export const BASE_URL = isDev
  ? "http://tvendor.cococc888.com"
  : "https://collect.cocogc.cn";
export const PDF_URL = isDev
  ? "http://tvendor.cococc888.com/pdf/web/viewer.html?file="
  : "https://collect.cocogc.cn/pdf/web/viewer.html?file=";
export const MINX_URL = (url) => {
  const reg = /(https?:|\/\/)/;
  if (reg.test(url)) {
    return url;
  }
  return BASE_URL + url;
};

export const BMapAk = "IZpK9QRN3kSb6YS3IW13Auq3GKWDnmUQ";
